package com.xunkids.bos.migration.common.constant;


import java.time.LocalDate;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * @program: bos-data-migration
 * @author: byl
 * @create: 2024-03-28 15:59
 * @Description
 */
public class BusinessConstant {

    public static String XIAOMI_CONSUMER_URL = "https://app.mieco.net/xunkids/bos-migration/bos-migration/add";



    /**
     * 米兔的设备类型
     */
    public static  Set<String> MI_TU_DEVICE_TYPE = new HashSet<>(Arrays.asList("SW105","SW106","SW501","SW730","SW203","SW760","SW761","SW762","SW560",
            "SW960","SW763","SW660","SW766","SW768","SW767","SW772","SW771","SW770",
            "SW773","SW771_A02","SW772_A02","SW769","SW775","SW776","SW777","SW778"));

    public static String FIRST_DEVICE_TYPE = null;

//AK=97687ae5938b470499865e387a2d7609
//SK=d5b5efa07a824f679d1ffaac62c10c82
//endpoint=https://gz.bcebos.com
    public static String BAIDU_ACCESS_KEY_ID = "97687ae5938b470499865e387a2d7609";
    //bos as
    public static String BAIDU_ACCESS_KEY_SECRET = "d5b5efa07a824f679d1ffaac62c10c82";
    //bos endpoint
    public static String BAIDU_END_POINT = "https://gz.bcebos.com";
    //fds ak
    public static String XIAOMI_ACCESS_KEY_ID = "LTAI5tJAeNEPvWkauxWRduAP";
    //fds as
    public static String XIAOMI_ACCESS_KEY_SECRET = "8VVxssqYou6d7v2ddljUEya0CmN3xv";

    //以下两个明文的，只再迁移过程中使用， 迁移完成后，会删除
    //测试：
    //AccessKey：LTAI5tPGYainEjcVkYfMLCDv
    //SecretKey：tAsLRQqx9982pRd1FvFnaHg2jFkOH5
    //
    //正式：
    //AccessKey：LTAI5tJAeNEPvWkauxWRduAP
    //SecretKey：8VVxssqYou6d7v2ddljUEya0CmN3xv
    //
    //endpoint： oss-cn-beijing.aliyuncs.com
    public static String XIAOMI_ACCESS_TEST_KEY_ID = "LTAI5tPGYainEjcVkYfMLCDv";
    //fds as
    public static String XIAOMI_ACCESS_TEST_KEY_SECRET = "tAsLRQqx9982pRd1FvFnaHg2jFkOH5";
    //fds endpoint
    //fds endpoint
    public static String XIAOMI_END_POINT = "oss-cn-beijing.aliyuncs.com";
    public static String XIAOMI_REGOIN_ID = "oss-cn-beijing";

    //前缀
    public static String XIAOMI_BUCKET_PREFIX = "bkt-bj-xunkids-";

    //另一种前缀前缀
    public static String XIAOMI_BUCKET_ENGLISH_STUDY_PREFIX = "bkt-bj-";

    //后缀
    public static String XIAOMI_BUCKET_SUFFIX = "-alicn";

    public static String XIAOMI_BUCKET_SUFFIX_PREFIX = "1";

    //后缀
    public static String XIAOMI_BUCKET_TEST_SUFFIX = "-test-alicn";

    //redis 链得key
    public static String CHAIN_BUCKET = "bos.migration.chain";

    public static String TRANSPORT_RESPONSE_CODE = "response";
    public static String TRANSPORT_REQUEST_CODE = "request";
    public static Boolean STOCK_SYNC_SWITCH = false;

    /**
     * 存量同步得结束时间。默认每次获取当前时间。使得任务不进行，等待页面进行配置。
     */
    public static LocalDate INVENTORY_FILE_STORAGE_END_TIME = LocalDate.of(2024,5,23);
    public static String TRANSPORT_TOPIC_OTHER = "e146680bb9ac40f288f62cb0cc674d2f__bos-migration-other-topic";
    public static String TRANSPORT_TOPIC_BBWATCH = "e146680bb9ac40f288f62cb0cc674d2f__bos-migration-bbwatch-topic";

    public static String PUT_OBJECT = "PutObject";

    public static String DELETE_OBJECT = "DeleteObject";

    public static String REDIS_STOCK_BUCKET_KEY = "bos.migration.stock.bucket";
    public static String EID_LIST = "bos.migration.stock.list";
    public static String EID_LIST_LOCK = "bos.migration.stock.lock";

    //
    private BusinessConstant(){}


}
